@import './params';

#app {
  //background-color: #FFFFFF;
  color: var(--fontColor);
  display: flex;
  flex-direction: column;
}

.layout {
  @if $platform == darwin {
    height: calc(100% - 22px);
  } @else {
    height: 100%;
  }
}

.ivu-menu-vertical {
  flex-grow: 1;

  .ivu-menu-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;

    .layout-text {
      margin-left: 0;
      line-height: 25px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .layout-icon {
      margin-left: 0;
      line-height: 25px;
      background: rgba(255, 255, 255, .7);
      width: 25px;
      color: var(--fontColor);
      text-align: center;
      text-transform: capitalize;
    }
  }
}

.ivu-breadcrumb-item-link {
  > .ivu-icon {
    line-height: 1.5;
  }
}

//表格 多选 图标边距修改
.ivu-table-cell {
  .ivu-checkbox-wrapper {
    margin-right: 0;
  }
}

.ivu-btn-text:focus {
  box-shadow: none;
}

.ivu-menu-item-active {
  font-weight: 500;
}

.ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu):after {
  width: 2px !important;
}

.spin-icon-load {
  animation: ani-demo-spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes ani-demo-spin {
  from {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.client-link {
  color: #2d8cf0;
}

//自定义scrollbar 效果不好
::-webkit-scrollbar {
  width: 2px;
  background-color: var(--bg-resource);
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  //border-radius: 3px;
  background-color: var(--bg-resource);
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  //border-radius: 3px;
  height: 2px;
  background-color: #C1C1C1;
}

//横向滑块设置
.horizontal::-webkit-scrollbar {
  height: 2px;
}

.horizontal::-webkit-scrollbar-thumb {
  width: 2px;
}

.no-drag {
  -webkit-app-region: no-drag;
}


.theme-light {
  --fontColor :#495060;
  --bg-bucketpage: #f5f7f9;
  --bg-header: #FFFFFF;
  --bg-resource: #FFFFFF;
  --bg-item-selected: #F5F5F5;
  --menu-bg: #FFFFFF;
  --menu-bg-selectedd: #f5f7f9;
  --menu-color: #515a6e;
  --bg-input: #FFFFFF;
  --input-border-width: 1px;
  --bg-card-hover: rgba(0, 0, 0, .01);
  --bg-spin: rgba(255, 255, 255, 0.7);
}

.theme-dark {
  --fontColor :rgba(255, 255, 255, .8);
  --bg-bucketpage: #323639;
  --bg-header: #202124;
  --bg-resource: #202124;
  --bg-item-selected: #2f3133;
  --menu-bg: #202124;
  --menu-bg-selectedd: #323639;
  --menu-color: rgba(255, 255, 255, .8);
  --bg-input: #3C4043;
  --input-border-width: 0px;
  --bg-card-hover: rgba(255, 255, 255, 0.01);
  --bg-spin: rgba(0, 0, 0, 0.7);
}
